#ifndef __CAL_CONTROL_H__
#define __CAL_CONTROL_H__

#define GRAVITY_MSS 9.80665f

typedef struct
{
 float x;
 float y;
 float z;
}Acce_Unit;

typedef enum{
  false = 0,
  true = !false
}bool;

bool  Calibrate_accel(Acce_Unit accel_sample[6],
                      Acce_Unit *accel_offsets,
                      Acce_Unit *accel_scale);



#endif

